Skip to content

Conversation

ShaharNaveh
Copy link
Contributor

@ShaharNaveh ShaharNaveh commented Jan 7, 2020

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

I think this is a bit outdated, since we are using black and it's doing the work for us, right?

according to git blame, this is 2 years old.

c = Categorical(idx)

# TODO(wesm): exceeding 80 characters in the console is not good
# behavior
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this referring to the code or to the string being returned? black only affects the former

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's about the output.

In [16]: idx = pd.CategoricalIndex(list(string.ascii_letters))

In [17]: [len(x) for x in repr(idx).split('\n')]
Out[17]: [77, 77, 77, 77, 38, 107]

@WillAyd WillAyd added this to the 1.0 milestone Jan 7, 2020
@WillAyd WillAyd merged commit a51a562 into pandas-dev:master Jan 7, 2020
@WillAyd
Copy link
Member

WillAyd commented Jan 7, 2020

Thanks @MomIsBestFriend

@alimcmaster1
Copy link
Member

@MomIsBestFriend - I don’t think this is referring to black.

Think it’s related to #22524

@ShaharNaveh
Copy link
Contributor Author

@alimcmaster1 should it be reverted then?

@ShaharNaveh ShaharNaveh deleted the CLN-wsem-comment branch January 8, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants